package com.ruoyi.control.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; //添加
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.control.mapper.DchjsFiveHistoryMapper;
import com.ruoyi.control.domain.DchjsFiveHistory;
import com.ruoyi.control.service.IDchjsFiveHistoryService;

/**
 * 10605底抽巷局扇历史数据Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-08
 */
@Service
public class DchjsFiveHistoryServiceImpl extends ServiceImpl<DchjsFiveHistoryMapper, DchjsFiveHistory> implements IDchjsFiveHistoryService //修改
{
    @Autowired
    private DchjsFiveHistoryMapper dchjsFiveHistoryMapper;

    /**
     * 查询10605底抽巷局扇历史数据
     * 
     * @param id 10605底抽巷局扇历史数据主键
     * @return 10605底抽巷局扇历史数据
     */
    @Override
    public DchjsFiveHistory selectDchjsFiveHistoryById(String id)
    {
        return dchjsFiveHistoryMapper.selectDchjsFiveHistoryById(id);
    }

    /**
     * 查询10605底抽巷局扇历史数据列表
     * 
     * @param dchjsFiveHistory 10605底抽巷局扇历史数据
     * @return 10605底抽巷局扇历史数据
     */
    @Override
    public List<DchjsFiveHistory> selectDchjsFiveHistoryList(DchjsFiveHistory dchjsFiveHistory)
    {
        return dchjsFiveHistoryMapper.selectDchjsFiveHistoryList(dchjsFiveHistory);
    }

    /**
     * 新增10605底抽巷局扇历史数据
     * 
     * @param dchjsFiveHistory 10605底抽巷局扇历史数据
     * @return 结果
     */
    @Override
    public int insertDchjsFiveHistory(DchjsFiveHistory dchjsFiveHistory)
    {
        return dchjsFiveHistoryMapper.insertDchjsFiveHistory(dchjsFiveHistory);
    }

    /**
     * 修改10605底抽巷局扇历史数据
     * 
     * @param dchjsFiveHistory 10605底抽巷局扇历史数据
     * @return 结果
     */
    @Override
    public int updateDchjsFiveHistory(DchjsFiveHistory dchjsFiveHistory)
    {
        dchjsFiveHistory.setUpdateTime(DateUtils.getNowDate());
        return dchjsFiveHistoryMapper.updateDchjsFiveHistory(dchjsFiveHistory);
    }

    /**
     * 批量删除10605底抽巷局扇历史数据
     * 
     * @param ids 需要删除的10605底抽巷局扇历史数据主键
     * @return 结果
     */
    @Override
    public int deleteDchjsFiveHistoryByIds(String[] ids)
    {
        return dchjsFiveHistoryMapper.deleteDchjsFiveHistoryByIds(ids);
    }

    /**
     * 删除10605底抽巷局扇历史数据信息
     * 
     * @param id 10605底抽巷局扇历史数据主键
     * @return 结果
     */
    @Override
    public int deleteDchjsFiveHistoryById(String id)
    {
        return dchjsFiveHistoryMapper.deleteDchjsFiveHistoryById(id);
    }
}
